package com.kmxd.ams.client.event.es;

import com.kmxd.ams.client.event.AmsEvent;
import java.util.Collection;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

/**
 * 索引数据到 es
 *
 * @author nickbi
 */
@EqualsAndHashCode(callSuper = true)
@Getter
@ToString(callSuper = true)
public class EsSaveDataEvent extends AmsEvent {
  private final Collection<Long> ids;

  private final Long archTypeId;

  private final String tableId;

  public EsSaveDataEvent(Collection<Long> ids, Long archTypeId, String tableId) {
    this.ids = ids;
    this.archTypeId = archTypeId;
    this.tableId = tableId;
  }
}
